From: Jasper St. Pierre Date: Fri, 15 Feb 2013 12:59:23 +0000 (-0500) Subject: screenShield: Fix crash with the idle monitor X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~4849 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4618e1140657af2ba528fc63b7137fb4592dfac8;p=gnome-shell.git screenShield: Fix crash with the idle monitor --- diff --git a/js/ui/screenShield.js b/js/ui/screenShield.js index e9301a9ef..0329381ae 100644 --- a/js/ui/screenShield.js +++ b/js/ui/screenShield.js @@ -771,7 +771,7 @@ const ScreenShield = new Lang.Class({ if (this._activationTime == 0) this._activationTime = GLib.get_monotonic_time(); - this._becameActiveId = this.idleMonitor.add_user_active_watch(this._onUserBecameActive); + this._becameActiveId = this.idleMonitor.add_user_active_watch(Lang.bind(this, this._onUserBecameActive)); let shouldLock = this._settings.get_boolean(LOCK_ENABLED_KEY) && !this._isLocked;